﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdministracionAplicaciones.aspx.cs" Inherits="BMSeguridad_AdministracionAplicaciones" MasterPageFile="~/MasterPage.master" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1 style="text-align: left">
            &nbsp;&nbsp;&nbsp;Administraci&oacute;n de Aplicaciones</h1>
    <p>
        <asp:ScriptManager id="ScriptManager1" runat="server">
        </asp:ScriptManager>&nbsp;</p>
    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>

<TABLE class="tablaForm" width=550 align=center><TBODY><TR><TD class="tdTit" align=right colSpan=3>Administraci&oacute;n de Aplicaciones</TD></TR><TR><TD style="WIDTH: 20%" class="tdForm" align=right>Aplicaci&oacute;n&nbsp;</TD><TD style="WIDTH: 80%" class="tdForm" align=left><asp:TextBox id="txtAplicacion" runat="server" CssClass="cuadrotxt100"></asp:TextBox></TD></TR><TR><TD style="WIDTH: 20%" class="tdForm" align=right>Descripci&oacute;n&nbsp;</TD><TD style="WIDTH: 80%" class="tdForm" align=left><asp:TextBox id="txtDescripcion" runat="server" CssClass="cuadrotxt100"></asp:TextBox> </TD></TR><TR><TD class="tdBotones" colSpan=2><asp:Button id="btnBuscar" onclick="btnBuscar_Click" runat="server" Text="Buscar" Width="75px"></asp:Button> <asp:Button id="btnNuevo" onclick="btnNuevo_Click" runat="server" Text="Nuevo" Width="75px"></asp:Button> <asp:Button id="btnCancelar" onclick="btnCancelar_Click" runat="server" Text="Cancelar" Width="75px"></asp:Button></TD></TR><TR><TD style="WIDTH: 550px" colSpan=3><asp:GridView id="dgAplicaciones" runat="server" BorderWidth="1px" BackColor="White" Width="100%" OnPageIndexChanging="dgAplicaciones_PageIndexChanging" OnSelectedIndexChanged="dgAplicaciones_SelectedIndexChanged" CellPadding="3" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="Id_Aplicacion" BorderColor="#999999" BorderStyle="None" GridLines="Vertical" OnRowDeleting="dgAplicaciones_RowDeleting">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black"></FooterStyle>
<Columns>
<asp:TemplateField HeaderText="C&#243;digo">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:Label id="Id_Aplicacion" runat="server" Text='<%# Bind("Id_Aplicacion") %>'></asp:Label> 
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Aplicaci&#243;n">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:Label id="Nombre_Aplicacion" runat="server" Text='<%# Bind("Nombre_Aplicacion") %>'></asp:Label> 
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField ReadOnly="True" DataField="Descripcion_Aplicacion" SortExpression="Descripcion_Aplicacion" HeaderText="Descripci&#243;n">
<HeaderStyle ForeColor="White"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="Modo_Autenticacion" SortExpression="Modo_Autenticacion" HeaderText="Modo Autenticaci&#243;n">
<HeaderStyle ForeColor="White"></HeaderStyle>
</asp:BoundField>
<asp:TemplateField ShowHeader="False">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:LinkButton runat="server" Text="Seleccionar" CommandName="Select" CausesValidation="False" id="LinkButton2"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:LinkButton runat="server" Text="Eliminar" CommandName="Delete" CausesValidation="False" id="LinkButton1" OnClientClick="return confirm('¿Seguro que desea eliminar este registro ?');"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center"></RowStyle>

<EditRowStyle Wrap="True"></EditRowStyle>

<SelectedRowStyle BackColor="#008A8C" ForeColor="White" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#325FB9" ForeColor="White" Font-Names="Arial Rounded MT Bold" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="Gainsboro"></AlternatingRowStyle>
</asp:GridView></TD></TR></TBODY></TABLE></contenttemplate>
    </asp:UpdatePanel>
    <BR /><BR />

</asp:Content>
